<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        function kan(){
            var xhr = new XMLHttpRequest();
            xhr.open('get','xml.php',true);
            xhr.send(null);
            xhr.onreadystatechange = function(){
                if(this.readyState == 4){
                    console.log(this.responseXML.getElementsByTagName('news')[0].innerHTML);
                    //console.log(this.responseXML);
                }
            }
        }
        kan();
    </script>
</body>
</html>